package com.woniuxy.car.boss.client;


import com.woniuxy.car.boss.param.store.BossApprovalApplicationParam;
import com.woniuxy.car.boss.param.store.BossApprovalStoreServiceApplicationParam;
import com.woniuxy.car.common.resultcode.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "storeBossClient",name="boss")
public interface StoreBossClient {

    /**
     * 审批入驻申请
     * @return
     */
    @PostMapping("/approvalApplication")
    public Result approvalApplication(@RequestBody BossApprovalApplicationParam bossApprovalApplicationParam);

    /**
     * 查询所有门店
     * @return
     */
    @GetMapping("/findAllStore")
    public Result findAllStore();

    /**
     * 审批门店服务申请
     * @param bossApprovalStoreServiceApplicationParam
     * @return
     */
    @PostMapping("/approvalStoreServiceApplication")
    public Result approvalStoreServiceApplication(@RequestBody BossApprovalStoreServiceApplicationParam bossApprovalStoreServiceApplicationParam);

    /**
     * 平台查询所有服务申请
     * @return
     */
    @GetMapping("/getAllServiceApplication")
    public Result getAllServiceApplication();

    /**
     *  平台查询所有入驻申请
     * @return
     */
    @GetMapping("/getAllStoreApplication")
    public Result getAllStoreApplication();
}
